body {
  margin: 0px;
  overflow: hidden;
}

/* 网格布局，一行两个 */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: all 0.5s ease-in-out;
  width: 200vw;
  height: 200vh;
  transform: translate(0vw, 0vh);
}

/* 单一元素占满整个屏幕 */
.grid-container > div {
  height: 100vh;
  width: 100vw;
  background-size: cover;
  background-repeat: no-repeat;
  color: red;
}

.grid-container > div:nth-child(1) {
  background-image: url('../../images/bataman0001.jpg');
}

.grid-container > div:nth-child(2) {
  background-image: url('../../images/bataman0002.jpg');
}

.grid-container > div:nth-child(3) {
  background-image: url('../../images/bataman0004.jpg');
}

.grid-container > div:nth-child(4) {
  background-image: url('../../images/bataman0005.jpg');
}

.menu {
  position: fixed;
  bottom: 1rem;
  left: 0px;
  right: 0px;
  display: flex;
  justify-content: center;
}

.menu > label {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

input[name='menu'] {
  position: absolute;
  top: -10000px;
}

#menu1:checked ~ .grid-container {
  transform: translate(0vw, 0vh);
}

#menu2:checked ~ .grid-container {
  transform: translate(-100vw, 0vh);
}

#menu3:checked ~ .grid-container {
  transform: translate(0vw, -100vh);
}

#menu4:checked ~ .grid-container {
  transform: translate(-100vw, -100vh);
}

#menu5:checked ~ .grid-container {
  transform: translate(0vw, -200vh);
}
